package com.lz.repository.xjl;

import com.lz.entity.*;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**@装潢单类接口
 * @author 徐建林
 * @date 2018/10/21 20:45
 */
public interface EquipmentSheetDao {
    /**通过传入条件查询装潢单
     * @param pageNo 页数
     * @param pageSize 每页数量
     * @param map 查询条件
     * @return 装潢单列表*/

    List<EquipmentSheet> getEquipmentSheetList(Integer pageNo, Integer pageSize, Map<String, Object> map);
   /*第一次打开是获取list*/
   List<EquipmentSheet> getEquipmentSheetList(Integer pageNo, Integer pageSize);

    EquipmentSheet getEquipmentById(Integer equipmentSheetNo);

    /**获得装潢表的主键最大值*/
    Integer getMaxPrimaryKey();


    Integer removeEquipmentSheetByEquipmentSheetNo(Integer equipmentSheetNo);
    /**存储装潢表*/
    Integer saveEquipmentSheet(EquipmentSheet equipmentSheet, Car car, Customer customer, List<TemporaryCarParts> temporaryCarPartsList, Employee employee, UpholsteryType upholsteryType);

    void deleteByEquipmentSheetNO(Integer equipmentSheetNO);

    Integer getRow(Map<String, Object> map);
    /**将装潢单的状态更改为正在装潢*/
    void setEquipmentSheetType(Integer EquipmentSheetNo);
}
